const std = @import("std");
const Random = std.Random;
const rl = @import("raylib");
const Color = rl.Color;

pub var world_width: u32 = 800;
pub var world_height: u32 = 480;

pub var screen_width: f32 = 800.0;
pub var screen_height: f32 = 480.0;

pub var cell_radius: f32 = 9;
pub var cell_color = &rl.Color.blue;

pub var food_height: f32 = 3;
pub var food_color = &rl.Color.green;

pub const MinCellScanRange: u8 = 15.0;
pub const MaxCellScanRange: u8 = 48.0;

pub const MoveSpeedMin: f32 = 15.0;
pub const MoveSpeedMax: f32 = 35.0;

pub fn FetchRndColor(rand: *const Random) *const Color {
    return PickableColor[rand.intRangeAtMost(usize, 0, PickableColor.len - 1)];
}
const PickableColor = [_]*const Color{
    &Color.yellow,
    &Color.violet,
    &Color.sky_blue,
    &Color.red,
    &Color.ray_white,
    // &Color.white,
    &Color.purple,
    &Color.pink,
    &Color.orange,
    &Color.maroon,
    &Color.magenta,
    &Color.lime,
    &Color.light_gray,
    &Color.green,
    &Color.gray,
    &Color.gold,
    &Color.dark_purple,
    &Color.dark_green,
    &Color.dark_gray,
    &Color.dark_brown,
    &Color.dark_blue,
    &Color.brown,
    &Color.blue,
    &Color.blank,
    &Color.black,
    &Color.beige,
};
